package com.ibatis.jpetstore.presentation;

import com.ibatis.common.util.PaginatedList;
import com.ibatis.jpetstore.domain.Schemapt;
import com.ibatis.jpetstore.service.SchemaptService;

public class SchemaptBean extends AbstractBean{
	
	private SchemaptService schemaptService;
	private Schemapt      schemaptTO;
	private PaginatedList itemList;
	private String flag;
	public SchemaptBean()
	{
		this(new SchemaptService());
	}
	
	public SchemaptBean(SchemaptService schemaptService)
	{
		this.schemaptTO=new Schemapt();
		this.schemaptService=schemaptService;
	}
	
	public int getSchemaid() {
		return schemaptTO.getSchemaid();
	}
	public void setSchemaid(int schemaid) {
		schemaptTO.setSchemaid(schemaid);
	}
	
	public String getMoneyAsStr() {
		return schemaptTO.getMoneyAsStr();
	}
	public void setMoneyAsStr(String moneyAsStr) {
		schemaptTO.setMoneyAsStr(moneyAsStr) ;
		
	}
	
	public int getPoints() {
		return schemaptTO.getPoints();
	}
	public void setPoints(int points) {
		 schemaptTO.setPoints(points);
	}
	public int getOtherpoints() {
		return schemaptTO.getOtherpoints();
	}
	public void setOtherpoints(int otherpoints) {
		schemaptTO.setOtherpoints(otherpoints) ;
	}
	public PaginatedList getItemList() {
		return itemList;
	}

	public void setItemList(PaginatedList itemList) {
		this.itemList = itemList;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Schemapt getSchemaptTO() {
		return schemaptTO;
	}

	public void setSchemaptTO(Schemapt schemaptTO) {
		this.schemaptTO = schemaptTO;
	}
	
	
	
	public String addOrEditSchemapt()
	{
		return SUCCESS;
	}
	
	

}
